package com.robotic.route.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.robotic.common.annotation.Excel;
import com.robotic.common.core.domain.BaseEntity;

/**
 * 巡检记录详情对象 inspection_record_details
 *
 * @author tian
 * @date 2025-10-15
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("inspection_record_details")
public class InspectionRecordDetails extends BaseEntity
{

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date alarmTime;

    /** 报警信息 */
    @Excel(name = "报警信息")
    private String alarmInfo;
    private String pointValue;

    /** 传感器类型 */
    @Excel(name = "传感器类型")
    private String sensorType;

    /** 处理人 */
    @Excel(name = "处理人")
    private String handle;

    /** 报警类型 */
    @Excel(name = "报警类型")
    private String alarmType;

    /** 关联传感器ID */
    @Excel(name = "关联传感器ID")
    private Long sensorId;

    /** 建议处理方案 */
    @Excel(name = "建议处理方案")
    private String suggestion;

    /** 图片 */
    @Excel(name = "图片")
    private String url;

    /** 状态 (1:待处理, 2:处理中, 3:已完成) */
    @Excel(name = "状态 (1:待处理, 2:处理中, 3:已完成)")
    private String status;

    @TableField(exist = false)
    private String deviceName;

    @TableField(exist = false)
    private Date startTime;

    @TableField(exist = false)
    private Date endTime;
    private String pointCode;
    private String pointName;
    private Long recordId;

    @TableField(exist = false)
    private String isAlarm;
}
